UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

All shell files must have mode 0755 or less permissive.


Overview

Finding ID Version Rule ID IA Controls Severity
V-922 GEN002220 SV-45174r1_rule High
Description
Shells with world/group write permissions give the ability to maliciously modify the shell to obtain unauthorized access.
STIG Date
SUSE Linux Enterprise Server v11 for System z 2017-08-25

Details

Check Text ( C-42519r1_chk )
If /etc/shells exists, check the group ownership of each shell referenced.
# cat /etc/shells | xargs -n1 ls -l

Otherwise, check any shells found on the system.
# find / -name "*sh" | xargs -n1 ls -l

If a shell has a mode more permissive than 0755, this is a finding.
Fix Text (F-38572r1_fix)
Change the mode of the shell.
# chmod 0755